package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_OnlinePurchaseReturnItem", catalog="Id")
public class TccOnlinePurchaseReturnItem extends BaseEntity<TccOnlinePurchaseReturnItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="PurchaseOrderSonId", nameJava="purchaseOrderSonId", typeDataBase="bigint")
	private Long purchaseOrderSonId;
	@YsField(nameDataBase="SubStorageNum", nameJava="subStorageNum", typeDataBase="int")
	private Integer subStorageNum;
	@YsField(nameDataBase="SubRefundNum", nameJava="subRefundNum", typeDataBase="int")
	private Integer subRefundNum;
	@YsField(nameDataBase="SubRefundPrice", nameJava="subRefundPrice", typeDataBase="decimal")
	private BigDecimal subRefundPrice;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccOnlinePurchaseReturnItem setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TccOnlinePurchaseReturnItem setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public Long getPurchaseOrderSonId() {
		return purchaseOrderSonId;
	}
	public TccOnlinePurchaseReturnItem setPurchaseOrderSonId(Long purchaseOrderSonId) {
		this.purchaseOrderSonId = purchaseOrderSonId;
		return this;
	}
	public Integer getSubStorageNum() {
		return subStorageNum;
	}
	public TccOnlinePurchaseReturnItem setSubStorageNum(Integer subStorageNum) {
		this.subStorageNum = subStorageNum;
		return this;
	}
	public Integer getSubRefundNum() {
		return subRefundNum;
	}
	public TccOnlinePurchaseReturnItem setSubRefundNum(Integer subRefundNum) {
		this.subRefundNum = subRefundNum;
		return this;
	}
	public BigDecimal getSubRefundPrice() {
		return subRefundPrice;
	}
	public TccOnlinePurchaseReturnItem setSubRefundPrice(BigDecimal subRefundPrice) {
		this.subRefundPrice = subRefundPrice;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccOnlinePurchaseReturnItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccOnlinePurchaseReturnItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccOnlinePurchaseReturnItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccOnlinePurchaseReturnItem tccOnlinePurchaseReturnItem(
		Long pid,
		Long purchaseOrderSonId,
		Integer subStorageNum,
		Integer subRefundNum,
		BigDecimal subRefundPrice,
		Integer status
			) {
		TccOnlinePurchaseReturnItem entity = new TccOnlinePurchaseReturnItem();
		entity.setPid(pid);
		entity.setPurchaseOrderSonId(purchaseOrderSonId);
		entity.setSubStorageNum(subStorageNum);
		entity.setSubRefundNum(subRefundNum);
		entity.setSubRefundPrice(subRefundPrice);
		entity.setStatus(status);
		return entity;
	}
}